package com.eshop.annotation;

import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.Annotation;

@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Query {
    String propName() default "";
    
    Type type() default Type.EQUAL;
    
    String blurry() default "";
    
    public enum Type
    {
        EQUAL, 
        GREATER_THAN, 
        GREATER_THAN_NQ, 
        LESS_THAN, 
        INNER_LIKE, 
        LEFT_LIKE, 
        RIGHT_LIKE, 
        LESS_THAN_NQ, 
        IN, 
        NOT_EQUAL, 
        BETWEEN, 
        NOT_NULL, 
        UNIX_TIMESTAMP;
    }
}
